﻿using System;

namespace Ganss.Excel.Tests.Data
{
    class NestedOfferMapped
    {
        public bool O { get; set; }
        public DateTime E { get; set; }
        public NestedProductMapped Cycle { get; set; }

        public override bool Equals(object obj)
        {
            if (obj is not NestedOfferMapped o) return false;
            return o.O == O && o.E == E;
        }

        public override int GetHashCode()
        {
            return HashCode.Combine(O, E);
        }
    }
}